import { jsx as _jsx } from "react/jsx-runtime";
import { ConfigProviderWrap } from '@ant-design/pro-provider';
import { ErrorBoundary } from '@ant-design/pro-utils';
import { Layout } from 'antd-v4';

var WrapContent = function WrapContent(props) {
  var _props$autoClearCache = props.autoClearCache,
      autoClearCache = _props$autoClearCache === void 0 ? true : _props$autoClearCache,
      style = props.style,
      className = props.className,
      children = props.children;
  var ErrorComponent = props.ErrorBoundary || ErrorBoundary;
  return _jsx(ConfigProviderWrap, {
    autoClearCache: autoClearCache,
    children: props.ErrorBoundary === false ? _jsx(Layout.Content, {
      className: className,
      style: style,
      children: children
    }) : _jsx(ErrorComponent, {
      children: _jsx(Layout.Content, {
        className: className,
        style: style,
        children: children
      })
    })
  });
};

export default WrapContent;